#!/usr/bin/bash

# Electron's version.
export npm_config_target=30.5.0
# The architecture of your machine
export npm_config_arch=x64
export npm_config_target_arch=x64
# Download headers for Electron.
export npm_config_disturl=http://repo.m.cnooc/repository/electron_headers/
# Tell node-pre-gyp that we are building for Electron.
export npm_config_runtime=electron
# Tell node-pre-gyp to build module from source code.
export npm_config_build_from_source=true
# Install all dependencies, and store cache to ~/.electron-gyp.
#HOME=~/.electron-gyp npm install
npm rebuild --runtime=electron
